package com.flappySeeker.common;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface BaseDao {
	
	public  List<Map<String, Object>> sqllistmap(String sql) throws SQLException;
	public  List<Map<String, Object>> sqllistmap(String sql,Object... args)throws SQLException;
	
	public  int update(String sql) throws SQLException;
	public  int update(String sql,Object... args) throws SQLException;
	
	
	
	public  String sqlforobj(String sql) throws SQLException;
	public  String  sqlforobj(String sql,Object... args) throws SQLException;
	
	
	public  int  sqlforint(String sql,Object... args) throws SQLException;
	/**
	 * 获取包含结果的分页对象
	 * @param p Page对象，含查询参数
	 */
	public Page getPageResult(Page p);
	public Page getByPage(Page p);
}
